package cn.amarone.scaffold.config.business.common;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.UUID;

/**
 * @author Amarone
 * @version 1.0
 * @description: 基础请求实体类
 */
@Schema(title = "基础请求实体类")
@Data
public class BaseReq {

    @Schema(description = "请求时间戳，用于标记业务请求时时间", defaultValue = "当前服务器时间时间戳")
    private String reqTime = String.valueOf(System.currentTimeMillis());

    @Schema(description = "请求ID，用于标记业务请求唯一标识", defaultValue = "UUID")
    private String reqId = UUID.randomUUID().toString();
}
